import platform = require('../../../../../platform/common/baseCommon');
import appClient = require('../../../../../platform/client/appClient');
import navtabsMainForm = require('../../../../../platform/client/mainForm/navtabs/navtabsMainForm');

/** 应用程序配置 */
export let defaultObject = new appClient.clientApplication();

let mainForm = new navtabsMainForm.navtabsMainForm();

syncRequire('./platform/client/controls');
mainForm.themes = {
    "默认": "stylesheets/bootstrap.min.css",
    "佛山国税": "stylesheets/theme/FSGS.bootstrap.min.css",
    "天蓝": "stylesheets/theme/Cerulean.bootstrap.min.css",
    "宇宙": "stylesheets/theme/Cosmo.bootstrap.min.css",
    "电子": "stylesheets/theme/Cyborg.bootstrap.min.css",
    "黑暗": "stylesheets/theme/Darkly.bootstrap.min.css",
    "单调": "stylesheets/theme/Flatly.bootstrap.min.css",
    "新纸": "stylesheets/theme/Journal.bootstrap.min.css",
    "光影": "stylesheets/theme/Lumen.bootstrap.min.css",
    "纸张": "stylesheets/theme/Paper.bootstrap.min.css",
    "砂岩": "stylesheets/theme/Sandstone.bootstrap.min.css",
    "简约": "stylesheets/theme/Simplex.bootstrap.min.css",
    "炮灰": "stylesheets/theme/Slate.bootstrap.min.css",
    "太阳系": "stylesheets/theme/Solar.bootstrap.min.css",
    "亮银": "stylesheets/theme/Spacelab.bootstrap.min.css",
    "超级英雄": "stylesheets/theme/Superhero.bootstrap.min.css",
    "乌班图": "stylesheets/theme/United.bootstrap.min.css",
    "雪人": "stylesheets/theme/Yeti.bootstrap.min.css"
};
mainForm.navPages = [
    {
        $type: "platform.client.tabPanePage",
        id: "usd",
        title: "贷款",
        icon: "usd",
        iconClass: "glyphicon glyphicon-usd",
        view: new platform.lazyFactory("project/test/config/client/mobileapp/testViewConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "echartTest",
        title: "EChart测试",
        icon: "home",
        iconClass: "glyphicon glyphicon-home",
        view: new platform.lazyFactory("project/test/config/client/smartReportApp/echartTestConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "testPageView1",
        title: "测试页面1",
        icon: "home",
        iconClass: "glyphicon glyphicon-home",
        view: new platform.lazyFactory("project/test/config/client/test/testPageViewConfig1", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "controlTest",
        title: "控件测试页面",
        icon: "send",
        iconClass: "glyphicon glyphicon-send",
        view: new platform.lazyFactory("project/test/config/client/test/testDemoConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "home",
        title: "虚开增值税发票风险排查",
        icon: "home",
        iconClass: "glyphicon glyphicon-home",
        view: new platform.lazyFactory("project/test/config/client/fsgsweb/report/xkzzsfpqyfxConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "send",
        title: "数据",
        icon: "send",
        iconClass: "glyphicon glyphicon-send",
        view: new platform.lazyFactory("project/test/config/client/webapp/dbTestViewConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "reportTest",
        title: "报表",
        icon: "send",
        iconClass: "glyphicon glyphicon-send",
        view: new platform.lazyFactory("project/test/config/client/webapp/barViewConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "user",
        title: "我",
        icon: "user",
        iconClass: "glyphicon glyphicon-user",
        view: new platform.lazyFactory("project/test/config/client/mobileapp/aboutViewConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "login",
        title: "登录",
        icon: "user",
        iconClass: "glyphicon glyphicon-user",
        view: new platform.lazyFactory("project/test/config/client/mobileapp/userinfo/loginViewConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "cloud",
        title: "测试",
        icon: "cloud",
        iconClass: "glyphicon glyphicon-cloud",
        view: new platform.lazyFactory("project/test/config/client/webapp/graphViewConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    },
    {
        $type: "platform.client.tabPanePage",
        id: "navigate",
        title: "测试参数跳转",
        icon: "cloud",
        iconClass: "glyphicon glyphicon-cloud",
        view: new platform.lazyFactory("project/test/config/client/smartReportApp/navigateViewConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    }
];
mainForm.title = "智能报表";
platform.fetchAddonProtoType(mainForm);
defaultObject.mainForm = mainForm;

defaultObject.serverLogger = new appClient.remoteFactory(platform.baseLogger, "remoteCall", "fileLogService");